﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 隐藏基类成员
{
    class Father
    {
        public int x;
        protected void FuncA()    //只可在类定义范围内调用
        {
            Console.WriteLine("这是类Father的方法成员FunA()");
        }



    }
    class Son:Father
    {
        public int y;
        public void FunB()
        {
            FuncA();
            Console.WriteLine("这是类Son的方法成员FunB()");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Son s = new Son();
            s.FunB();
        }
    }
}
